<%--
  Created by IntelliJ IDEA.
  User: 19416
  Date: 2022-11-10
  Time: 14:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath }/statics/layui/css/layui.css" media="all">

</head>
<body>
<div>
    <div style="color: red">${errorMsg}</div>
    <form class="layui-form" action="${pageContext.request.contextPath}/supplier/update" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label">id</label>
            <div class="layui-input-block">
                <input type="text" name="id" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input" id="id" value="${supplier.id}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">编号</label>
            <div class="layui-input-block">
                <input type="text" name="supCode" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input" id="supCode" value="${supplier.supCode}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" name="supName" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input" id="supName" value="${supplier.supName}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-block">
                <input type="text" name="supDesc" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input" id="supDesc" value="${supplier.supDesc}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-block">
                <input type="text" name="supContact" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input" id="supContact" value="${supplier.supContact}">
            </div>
        </div>



        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block">
                <input type="text" name="supPhone" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input" id="supPhone"  value="${supplier.supPhone}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-block">
                <input type="text" name="supAddress" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input" id="supAddress" value="${supplier.supAddress}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">传真</label>
            <div class="layui-input-block">
                <input type="text" name="supFax" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input" id="supFax" value="${supplier.supFax}">
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">修改</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<script src="${pageContext.request.contextPath }/statics/layui/layui.js"  charset="utf-8"></script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;

        //创建一个编辑器
        var editIndex = layedit.build('LAY_demo_editor');

    });
</script>
</body>
</html>
